﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AppItem.aspx.cs" Inherits="Manage_System_AppItem" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn">
        <div class="columntitle">
            <%=ActName %>
            应用程序名称
        </div>
        <form id="myForm" name="myForm" method="post" action="?act=<%=ActFlag %>" onsubmit="return validator(this)">
            <table cellpadding="5" width="98%" align="center">
                <tr>
                    <td align="left" style="width: 164px" width="120">
                        <img src="../pic/icons/help.gif" alt="应用程序名称" onclick="helpInf(this)" />
                        名称：</td>
                    <td align="left" width="410">
                        <div id="SelParentID">
                            <input id="AppName" errmsg="*请输入应用程序名称" name="AppName" type="text" valid="required"
                                value="<%=modelSysApp.AppName %>" />&nbsp;</div>
                    </td>
                </tr>
                <tr>
                    <td align="left" style="width: 164px">
                        <img src="../pic/icons/help.gif" alt="应用程序网址" onclick="helpInf(this)" />
                        网址：</td>
                    <td align="left">
                        <input id="AppUrl" errmsg="*请输入应用程序网址" name="AppUrl" type="text" valid="required"
                            value="<%=modelSysApp.AppUrl %>" /></td>
                </tr>
                <tr>
                    <td align="left" style="width: 164px">
                        <img src="../pic/icons/help.gif" alt="应用程序通讯密钥" onclick="helpInf(this)" />
                        通讯密钥：</td>
                    <td align="left">
                        <input id="AppKey" errmsg="*应用程序通讯密钥" name="AppKey" type="text" valid="required"
                            value="<%=modelSysApp.AppKey %>" /></td>
                </tr>
                <tr>
                    <td align="left" style="width: 164px">
                        <img src="../pic/icons/help.gif" alt="是否启用" onclick="helpInf(this)" />
                        是否启用：</td>
                    <td align="left" class="tdcheckbox">
                        <input type="checkbox" name="IsUsing" value="1" <%=modelSysApp.IsUsing?"checked":"" %> />启用</td>
                </tr>
<%--                <tr>
                    <td align="left" style="width: 164px">
                        <img src="../pic/icons/help.gif" alt="是否启用" onclick="helpInf(this)" />
                        内容模型：</td>
                    <td align="left" class="tdcheckbox">
                        <select name="ModelID" onchange="ChangePage()" id="ModelID">
                            <%
                                foreach (KeRui.Model.CmsModel model in listCmsModel)
                                {
                                    if (model.ModelID == modelSysApp.ModelID)
                                    {
                            %>
                            <option value="<%=model.ModelID %>" selected="selected">
                                <%=model.ModelName %>
                            </option>
                            <%
                                }
                                else
                                {
                            %>
                            <option value="<%=model.ModelID %>">
                                <%=model.ModelName %>
                            </option>
                            <%
                                }
                            } %>
                        </select>
                    </td>
                </tr>--%>
                <tr>
                    <td colspan="2" align="center" class="tdbutton" style="height: 31px">
                        <input type="submit" value="确 定" />&nbsp;&nbsp;
                        <input type="button" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');" />
                        <input type="hidden" name="AppID" value="<%=modelSysApp.AppID %>" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
